ABC169 C - Multiplication 3
提出
code: python
import math
a, b = input().split()
print(math.floor(int(a) * (float(b) * 100) // 100))
解答
code: python
from math import floor
from fractions import Fraction
a, b = input().split()
a = int(a)
b = Fraction(b)
print(floor(a * b))
メモ
提出
code: python
a, b = input().split()
print(0)
else:
print(str(int(a)*(int(float(b)*100))):-2) 解答
code: python
a, b = input().split()
a = int(a)
b = round(float(b) * 100)
print(a * b // 100)